<script>
     //var tagData = [{"id":12,"name":"长者"},{"id":13,"name":"工厂"},{"id":14,"name":"小学生"},{"id":15,"name":"大学生"},{"id":16,"name":"研究生"},{"id":17,"name":"教师"},{"id":18,"name":"记者"}];
    var tagData = <?php echo json_encode($product_list,JSON_UNESCAPED_UNICODE); ?>;
    var selected = "<?php echo $asset_product_list; ?>";
    layui.config({
        base : '../../../../application/layui-select-ext/'
    }).extend({
        selectN: './layui_extends/selectN',
        selectM: './layui_extends/selectM',
    }).use(['layer','form','jquery','selectN','selectM'],function(){
        $ = layui.jquery;
        var form = layui.form
            ,selectN = layui.selectN
            ,selectM = layui.selectM;

        //多选标签-基本配置
        var tagIns1 = selectM({
            //元素容器【必填】
            elem: '#select_text_product'
            //候选数据【必填】
            ,data: tagData
            ,width:800
            ,selected: selected.split(",")
        });

        form.on('submit(formMemberAdd)', function(data){

        });
    });
</script>